﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace PotentialRentals.Models
{
    public class UserRentalRank
    {
        [Key, Column("UserId",Order=1)]
        public int UserId { get; set; }

        [Key, Column("RentalId",Order=0)]
        public int RentalId { get; set; }

        public int? Rank { get; set; }

        [ForeignKey("UserId")]
        public virtual User User { get; set; }
    }
}